﻿using lBLL;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace WebApplication191.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class HoteController : ControllerBase, lHoteBLL
    {
        private readonly lHoteBLL db;

        public HoteController(lHoteBLL db)
        {
            this.db = db;
        }
        /// <summary>
        /// 下拉框
        /// </summary>
        /// <returns></returns>
        [HttpGet("Show")]
        public List<Hoteinfor> Show()
        {
            return db.Show();
        }
    }
}
